/*----------------------------------------------------------------------------
 | Copyright (c) 2009 Matthew B. Brophy (matt@brophy.org).  
 | Liscense: MIT License (http://www.opensource.org/licenses/mit-license.php)
 |
 | $Id: constant.js 16 2009-02-26 01:53:24Z matt@brophy.org $
 -----------------------------------------------------------------------------*/

if (typeof org == "undefined" || 
    org === null) { org = {}; }
if (typeof org.brophy == "undefined" || 
    org.brophy === null) { org.brophy = {}; }
if (typeof org.brophy.js == "undefined" || 
    org.brophy.js === null) { org.brophy.js = {}; }

/** 
 * @namespace 
 * @description Constants and globals namespace in the org.brophy.js 
 *              JavaScript library 
 */
org.brophy.js.constant = {};

/** 
 * @final
 * @description Identifies the nodeType property value for XML/HTML/XHTML 
 *              element nodes.  Can be used to ignore text nodes sometimes
 *              created by newlines in XML.
 */
org.brophy.js.constant.NODE_TYPE_ELEMENT = 1;

/**
 * @private 
 * @description Boolean flag to indicate whether the user has been notified
 *              of the absence of the MochiKit library.  QWe only want to 
 *              notify them once.
 */
org.brophy.js.constant.REQ_MOCHIKIT_NOTIFIED = false;

/**
 * @final
 * @description Unicode version of a non-breaking space.  Useful because 
 *              document.createTextNode() will convert &amp;nbsp; to approriate 
 *              entities and actually display the characters instead of the 
 *              intended space
 */
org.brophy.js.constant.UNICODE_NBSP = "\u00a0";

/**
 * @final
 * @description Keycode for the Enter key
 */
org.brophy.js.constant.KEY_ENTER = 13;

/**
 * @final
 * @description Keycode for the Enter key
 */
org.brophy.js.constant.KEY_ESCAPE = 27;

